<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>DataExtractor: E:/cas/cas.0.7.0/sfw/src/MinConsole/MinConsole.0.8.0/MinConsole/Conf/AppInstSettings.cs Source File</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<link href="../../doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.2 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="../../namespaces.html"><span>Packages</span></a></li>
      <li><a href="../../annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="../../files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs2">
    <ul class="tablist">
      <li><a href="../../files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<h1>E:/cas/cas.0.7.0/sfw/src/MinConsole/MinConsole.0.8.0/MinConsole/Conf/AppInstSettings.cs</h1>  </div>
</div>
<div class="contents">
<a href="../../d9/d9d/Conf_2AppInstSettings_8cs.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 ﻿using System;
<a name="l00002"></a>00002 <span class="keyword">using</span> System.Collections.Generic;
<a name="l00003"></a>00003 <span class="keyword">using</span> System.Data;
<a name="l00004"></a>00004 <span class="keyword">using</span> System.Text;
<a name="l00005"></a>00005 <span class="keyword">using</span> System.IO;
<a name="l00006"></a>00006 
<a name="l00007"></a><a class="code" href="../../d7/dcc/namespaceMinConsole_1_1Conf.html">00007</a> <span class="keyword">namespace </span>MinConsole.Conf
<a name="l00008"></a>00008 {
<a name="l00009"></a><a class="code" href="../../d0/d08/classMinConsole_1_1Conf_1_1AppInstSettings.html">00009</a>     <span class="keyword">public</span> sealed <span class="keyword">class </span><a class="code" href="../../d0/d08/classMinConsole_1_1Conf_1_1AppInstSettings.html">AppInstSettings</a> : MinConsole.Gaf.Model.<a class="code" href="../../d0/d08/classMinConsole_1_1Conf_1_1AppInstSettings.html">AppInstSettings</a>
<a name="l00010"></a>00010         {
<a name="l00011"></a>00011 
<a name="l00012"></a>00012 <span class="preprocessor">            #region SingletonPattern</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span>        
<a name="l00017"></a><a class="code" href="../../d0/d08/classMinConsole_1_1Conf_1_1AppInstSettings.html#a5024b7d4f048d2e843a5f0700270855e">00017</a>             <span class="keyword">public</span> <a class="code" href="../../d0/d08/classMinConsole_1_1Conf_1_1AppInstSettings.html">AppInstSettings</a>():base()
<a name="l00018"></a>00018             {
<a name="l00019"></a>00019                 <span class="keywordflow">try</span>
<a name="l00020"></a>00020                 {
<a name="l00021"></a>00021 
<a name="l00022"></a>00022                     <span class="keywordtype">string</span> strIniFile = MinConsole.Gaf.IO.FileUtility.CreateProcessDefaultIniFile();
<a name="l00023"></a>00023                     MinConsole.IniParser.FileIniDataParser parser = <span class="keyword">new</span> MinConsole.IniParser.FileIniDataParser();
<a name="l00024"></a>00024                     MinConsole.IniParser.IniData parsedData = parser.LoadFile(strIniFile);
<a name="l00025"></a>00025                     base.LoadDataFromIniFile(parsedData, <span class="stringliteral">&quot;GeneralConfiguration&quot;</span>);
<a name="l00026"></a>00026                 }
<a name="l00027"></a>00027                 <span class="keywordflow">catch</span> (Exception ex)
<a name="l00028"></a>00028                 {
<a name="l00029"></a>00029 <span class="preprocessor">                    #region Msg failed to initialize ini file</span>
<a name="l00030"></a>00030 <span class="preprocessor"></span>                    <span class="keywordtype">string</span> strMsgToEndUser = <span class="stringliteral">@&quot; Failed to initialize the data from the ini file.  Please chech you ini file settings: You could use the following template:</span>
<a name="l00031"></a>00031 <span class="stringliteral">COPYPASTE START: </span>
<a name="l00032"></a>00032 <span class="stringliteral"></span>
<a name="l00033"></a>00033 <span class="stringliteral">;This section contais the stored procedures to run </span>
<a name="l00034"></a>00034 <span class="stringliteral">;We use human counting the first item is 1 , the second 2 , the third 3 e.g. not Programmers ; ) </span>
<a name="l00035"></a>00035 <span class="stringliteral">;format: DataSource1=DataSource1Name</span>
<a name="l00036"></a>00036 <span class="stringliteral">;format: DataSource2=DataSource2Name</span>
<a name="l00037"></a>00037 <span class="stringliteral">[DataSourcesToRun]</span>
<a name="l00038"></a>00038 <span class="stringliteral">DataSource1=POC_DEV</span>
<a name="l00039"></a>00039 <span class="stringliteral">DataSource2=POC_DEV</span>
<a name="l00040"></a>00040 <span class="stringliteral"></span>
<a name="l00041"></a>00041 <span class="stringliteral">;This section contais the stored procedures to run </span>
<a name="l00042"></a>00042 <span class="stringliteral">;We use human counting the first item is 1 , the second 2 , the third 3 e.g. not Programmers ; ) </span>
<a name="l00043"></a>00043 <span class="stringliteral">;format: StoredProcedure1=StoredProcedure1Name</span>
<a name="l00044"></a>00044 <span class="stringliteral">;format: StoredProcedure2=StoredProcedure2Name</span>
<a name="l00045"></a>00045 <span class="stringliteral">[DataSource1StoredProcsToRun]</span>
<a name="l00046"></a>00046 <span class="stringliteral">StoredProcedure1=procDeleteMe_BugSelectAll</span>
<a name="l00047"></a>00047 <span class="stringliteral">StoredProcedure2=procDeleteMe_BugSelectAll1</span>
<a name="l00048"></a>00048 <span class="stringliteral"></span>
<a name="l00049"></a>00049 <span class="stringliteral">[DataSource2StoredProcsToRun]</span>
<a name="l00050"></a>00050 <span class="stringliteral">StoredProcedure1=procDeleteMe_BugSelectAll2</span>
<a name="l00051"></a>00051 <span class="stringliteral">StoredProcedure2=procDeleteMe_BugSelectAll3</span>
<a name="l00052"></a>00052 <span class="stringliteral"></span>
<a name="l00053"></a>00053 <span class="stringliteral"></span>
<a name="l00054"></a>00054 <span class="stringliteral">;Fill in here the parameters for the first stored procedure</span>
<a name="l00055"></a>00055 <span class="stringliteral">[DataSource1StoredProcedure1]</span>
<a name="l00056"></a>00056 <span class="stringliteral">Name=procDeleteMe_BugSelectAll</span>
<a name="l00057"></a>00057 <span class="stringliteral"></span>
<a name="l00058"></a>00058 <span class="stringliteral"></span>
<a name="l00059"></a>00059 <span class="stringliteral">;Fill in here the parameters for the first stored procedure</span>
<a name="l00060"></a>00060 <span class="stringliteral">[DataSource1StoredProcedure2]</span>
<a name="l00061"></a>00061 <span class="stringliteral">Name=procDeleteMe_BugSelectAll1</span>
<a name="l00062"></a>00062 <span class="stringliteral"></span>
<a name="l00063"></a>00063 <span class="stringliteral"></span>
<a name="l00064"></a>00064 <span class="stringliteral">;Fill in here the parameters for the first stored procedure</span>
<a name="l00065"></a>00065 <span class="stringliteral">[DataSource2StoredProcedure1]</span>
<a name="l00066"></a>00066 <span class="stringliteral">Name=procDeleteMe_BugSelectAll2</span>
<a name="l00067"></a>00067 <span class="stringliteral"></span>
<a name="l00068"></a>00068 <span class="stringliteral"></span>
<a name="l00069"></a>00069 <span class="stringliteral">;Fill in here the parameters for the first stored procedure</span>
<a name="l00070"></a>00070 <span class="stringliteral">[DataSource2StoredProcedure2]</span>
<a name="l00071"></a>00071 <span class="stringliteral">Name=procDeleteMe_BugSelectAll3</span>
<a name="l00072"></a>00072 <span class="stringliteral"></span>
<a name="l00073"></a>00073 <span class="stringliteral"></span>
<a name="l00074"></a>00074 <span class="stringliteral">;This section provides the general configuration of the application</span>
<a name="l00075"></a>00075 <span class="stringliteral">[GeneralConfiguration] </span>
<a name="l00076"></a>00076 <span class="stringliteral">;Where the log file will be situated</span>
<a name="l00077"></a>00077 <span class="stringliteral">AppLoginName = ysg</span>
<a name="l00078"></a>00078 <span class="stringliteral">AppLoginPass = pass</span>
<a name="l00079"></a>00079 <span class="stringliteral">AppName = MinConsole</span>
<a name="l00080"></a>00080 <span class="stringliteral">ConnectionStringTemplate = Data Source={0:G}¤Initial Catalog={1:G}¤Persist Security Info=False¤User ID={2:G}¤Password={3:G}¤MultipleActiveResultSets=True</span>
<a name="l00081"></a>00081 <span class="stringliteral">CultureInfo = fi-FI</span>
<a name="l00082"></a>00082 <span class="stringliteral">CultureNameUnderscored = fi_FI</span>
<a name="l00083"></a>00083 <span class="stringliteral">CurrencyDecimalDigits = 2</span>
<a name="l00084"></a>00084 <span class="stringliteral">DbHostNameAndInstance = hostName\POC_QA</span>
<a name="l00085"></a>00085 <span class="stringliteral">DbName = POC_DEV</span>
<a name="l00086"></a>00086 <span class="stringliteral">DebugDir = E:\nelle\nelle.9.2.0\sfw\src\MinConsole\MinConsole.0.5.0\MinConsole\bin\Release</span>
<a name="l00087"></a>00087 <span class="stringliteral">DefaultLoginName = ysg</span>
<a name="l00088"></a>00088 <span class="stringliteral">DefaultLoginPass = pass</span>
<a name="l00089"></a>00089 <span class="stringliteral">DefaultRDBMS = 1</span>
<a name="l00090"></a>00090 <span class="stringliteral">EncryptionAlgorithm = None</span>
<a name="l00091"></a>00091 <span class="stringliteral">FlagEncryptErrorMessages = 1</span>
<a name="l00092"></a>00092 <span class="stringliteral">FlagShowDbSwitcher = 1</span>
<a name="l00093"></a>00093 <span class="stringliteral">LogLevel = 4</span>
<a name="l00094"></a>00094 <span class="stringliteral">LogOutput = 4</span>
<a name="l00095"></a>00095 <span class="stringliteral">NumberDecimalDigits = 2</span>
<a name="l00096"></a>00096 <span class="stringliteral">NumberDecimalSeparator =  </span>
<a name="l00097"></a>00097 <span class="stringliteral">NumberGroupSeparator =  </span>
<a name="l00098"></a>00098 <span class="stringliteral">NumberOfDatabases = 1</span>
<a name="l00099"></a>00099 <span class="stringliteral">LogDir = E:\nelle\nelle.9.2.0\sfw\src\MinConsole\MinConsole.0.5.0\MinConsole\bin\Release</span>
<a name="l00100"></a>00100 <span class="stringliteral">LogFileNameTimePattern = yyyy.MM.dd</span>
<a name="l00101"></a>00101 <span class="stringliteral">;what will be the name of the log file </span>
<a name="l00102"></a>00102 <span class="stringliteral">LogFileNameSuffix = MinConsole.log      </span>
<a name="l00103"></a>00103 <span class="stringliteral">LogMessageSuffix = yyyy.MM.dd - hh.mm.ss --- </span>
<a name="l00104"></a>00104 <span class="stringliteral">;Whether or not to log to a file 1 will log to a file , 0 will NOT log to a file</span>
<a name="l00105"></a>00105 <span class="stringliteral">LogToFile=1 </span>
<a name="l00106"></a>00106 <span class="stringliteral">; Whether or not to log to a console 1 will log , 0 will not</span>
<a name="l00107"></a>00107 <span class="stringliteral">LogToConsole=1</span>
<a name="l00108"></a>00108 <span class="stringliteral">; whether or not to log to a database 1 will log , 0 will not </span>
<a name="l00109"></a>00109 <span class="stringliteral">LogToDb=1</span>
<a name="l00110"></a>00110 <span class="stringliteral">; if we debug to a file what will be the debug log file name </span>
<a name="l00111"></a>00111 <span class="stringliteral">DebugFileNameSuffix = MinConsole.debug.log</span>
<a name="l00112"></a>00112 <span class="stringliteral">; to which directory to the put the extracted files </span>
<a name="l00113"></a>00113 <span class="stringliteral">DataExtractDir=E:\nelle\nelle.9.2.0\sfw\src\MinConsole\MinConsole.0.5.0\MinConsole\bin\Release</span>
<a name="l00114"></a>00114 <span class="stringliteral">; from how-many database to retrieve data </span>
<a name="l00115"></a>00115 <span class="stringliteral">NumberOfDataSourcesToRun=2</span>
<a name="l00116"></a>00116 <span class="stringliteral"></span>
<a name="l00117"></a>00117 <span class="stringliteral"></span>
<a name="l00118"></a>00118 <span class="stringliteral">[DataSource1]</span>
<a name="l00119"></a>00119 <span class="stringliteral">;The id of this datasource</span>
<a name="l00120"></a>00120 <span class="stringliteral">DataSourceId=1          </span>
<a name="l00121"></a>00121 <span class="stringliteral">;</span>
<a name="l00122"></a>00122 <span class="stringliteral">RunId=1                         ;the number to run to </span>
<a name="l00123"></a>00123 <span class="stringliteral">Name=POC_DEV</span>
<a name="l00124"></a>00124 <span class="stringliteral">DataSourceTypeId = 1 ; 1=Database</span>
<a name="l00125"></a>00125 <span class="stringliteral">CurrencyDecimalDigits = 2</span>
<a name="l00126"></a>00126 <span class="stringliteral">DbHostNameAndInstance = hostName\POC_QA</span>
<a name="l00127"></a>00127 <span class="stringliteral">DbName = POC_DEV</span>
<a name="l00128"></a>00128 <span class="stringliteral">DebugDir = E:\nelle\nelle.9.2.0\sfw\src\MinConsole\MinConsole.0.5.0\MinConsole\bin\Release</span>
<a name="l00129"></a>00129 <span class="stringliteral">LoginName = ysg</span>
<a name="l00130"></a>00130 <span class="stringliteral">LoginPass = pass</span>
<a name="l00131"></a>00131 <span class="stringliteral">DefaultRDBMS = 1</span>
<a name="l00132"></a>00132 <span class="stringliteral">NumberOfStoredProceduresToRun=2</span>
<a name="l00133"></a>00133 <span class="stringliteral">DataExtractDir=E:\nelle\nelle.9.2.0\sfw\src\MinConsole\MinConsole.0.5.0\MinConsole\bin\Release</span>
<a name="l00134"></a>00134 <span class="stringliteral">ConnectionStringTemplate = Data Source={0:G}¤Initial Catalog={1:G}¤Persist Security Info=False¤User ID={2:G}¤Password={3:G}¤MultipleActiveResultSets=True</span>
<a name="l00135"></a>00135 <span class="stringliteral">TokenDelimiterAsciiNumber = 44          ;This is the ASCII number of the token delimiter to use in the csv file</span>
<a name="l00136"></a>00136 <span class="stringliteral">RowEndAsciiNumber = 13                                                  ;This is the ASCII number of the token delimiter to use in the csv file</span>
<a name="l00137"></a>00137 <span class="stringliteral">FlagQuoteTokens = 1 ; whether or not to qote tokens in the extract files </span>
<a name="l00138"></a>00138 <span class="stringliteral"></span>
<a name="l00139"></a>00139 <span class="stringliteral"></span>
<a name="l00140"></a>00140 <span class="stringliteral"></span>
<a name="l00141"></a>00141 <span class="stringliteral">[DataSource2]</span>
<a name="l00142"></a>00142 <span class="stringliteral">;WHERE THE LOG FILE WILL BE SITUATED</span>
<a name="l00143"></a>00143 <span class="stringliteral">DataSourceId=1          </span>
<a name="l00144"></a>00144 <span class="stringliteral">RunId=1                         ;the number to run to </span>
<a name="l00145"></a>00145 <span class="stringliteral">Name=POC_DEV</span>
<a name="l00146"></a>00146 <span class="stringliteral">DataSourceTypeId = 1 ; 1=Database</span>
<a name="l00147"></a>00147 <span class="stringliteral">CurrencyDecimalDigits = 2</span>
<a name="l00148"></a>00148 <span class="stringliteral">DbHostNameAndInstance = hostName\POC_QA</span>
<a name="l00149"></a>00149 <span class="stringliteral">DbName = POC_DEV</span>
<a name="l00150"></a>00150 <span class="stringliteral">DebugDir = E:\nelle\nelle.9.2.0\sfw\src\MinConsole\MinConsole.0.5.0\MinConsole\bin\Release</span>
<a name="l00151"></a>00151 <span class="stringliteral">LoginName = ysg</span>
<a name="l00152"></a>00152 <span class="stringliteral">LoginPass = pass</span>
<a name="l00153"></a>00153 <span class="stringliteral">DefaultRDBMS = 1</span>
<a name="l00154"></a>00154 <span class="stringliteral">NumberOfStoredProceduresToRun=2</span>
<a name="l00155"></a>00155 <span class="stringliteral">DataExtractDir=E:\nelle\nelle.9.2.0\sfw\src\MinConsole\MinConsole.0.5.0\MinConsole\bin\Release</span>
<a name="l00156"></a>00156 <span class="stringliteral">ConnectionStringTemplate = Data Source={0:G}¤Initial Catalog={1:G}¤Persist Security Info=False¤User ID={2:G}¤Password={3:G}¤MultipleActiveResultSets=True</span>
<a name="l00157"></a>00157 <span class="stringliteral">TokenDelimiterAsciiNumber = 44          ;This is the ASCII number of the token delimiter to use in the csv file</span>
<a name="l00158"></a>00158 <span class="stringliteral">RowEndAsciiNumber = 13                                                  ;This is the ASCII number of the token delimiter to use in the csv file</span>
<a name="l00159"></a>00159 <span class="stringliteral"></span>
<a name="l00160"></a>00160 <span class="stringliteral"></span>
<a name="l00161"></a>00161 <span class="stringliteral"></span>
<a name="l00162"></a>00162 <span class="stringliteral"></span>
<a name="l00163"></a>00163 <span class="stringliteral">COPYPASTEEND&quot;</span>; 
<a name="l00164"></a>00164 <span class="preprocessor">                    #endregion Msg failed to initialize ini file </span>
<a name="l00165"></a>00165 <span class="preprocessor"></span>                    Console.WriteLine(strMsgToEndUser);
<a name="l00166"></a>00166                     Console.WriteLine(ex.Message); 
<a name="l00167"></a>00167                 
<a name="l00168"></a>00168                 }
<a name="l00169"></a>00169 
<a name="l00170"></a>00170 
<a name="l00171"></a>00171             }<span class="comment">//eof const</span>
<a name="l00172"></a>00172 
<a name="l00173"></a>00173 
<a name="l00174"></a>00174 
<a name="l00178"></a>00178             <span class="keyword">public</span> <span class="keyword">static</span> <a class="code" href="../../d0/d08/classMinConsole_1_1Conf_1_1AppInstSettings.html">AppInstSettings</a> Instance
<a name="l00179"></a><a class="code" href="../../d0/d08/classMinConsole_1_1Conf_1_1AppInstSettings.html#a18ab72c0edc356d06d591d8bce64783a">00179</a>             {
<a name="l00180"></a>00180                 <span class="keyword">get</span>
<a name="l00181"></a>00181                 {
<a name="l00182"></a>00182                        <span class="keywordflow">return</span> <a class="code" href="../../df/d3c/classMinConsole_1_1Conf_1_1AppInstSettings_1_1Nested.html">Nested</a>.<a class="code" href="../../df/d3c/classMinConsole_1_1Conf_1_1AppInstSettings_1_1Nested.html#a5d212cadbf82cfb6c1eaef5b10f2ddb5">instance</a>;
<a name="l00183"></a>00183                 } <span class="comment">//eof get </span>
<a name="l00184"></a>00184 
<a name="l00185"></a>00185             } <span class="comment">//eof prop</span>
<a name="l00186"></a>00186 
<a name="l00187"></a><a class="code" href="../../df/d3c/classMinConsole_1_1Conf_1_1AppInstSettings_1_1Nested.html">00187</a>             <span class="keyword">class </span><a class="code" href="../../df/d3c/classMinConsole_1_1Conf_1_1AppInstSettings_1_1Nested.html">Nested</a>
<a name="l00188"></a>00188             {
<a name="l00189"></a>00189                 <span class="comment">// Explicit static constructor to tell C# compiler</span>
<a name="l00190"></a>00190                 <span class="comment">// not to mark type as before field init</span>
<a name="l00191"></a><a class="code" href="../../df/d3c/classMinConsole_1_1Conf_1_1AppInstSettings_1_1Nested.html#a9ca90ad61728ba35e8369c3534a9c5b1">00191</a>                 <span class="keyword">static</span> <a class="code" href="../../df/d3c/classMinConsole_1_1Conf_1_1AppInstSettings_1_1Nested.html">Nested</a>()
<a name="l00192"></a>00192                 {
<a name="l00193"></a>00193                 }
<a name="l00194"></a>00194 
<a name="l00195"></a><a class="code" href="../../df/d3c/classMinConsole_1_1Conf_1_1AppInstSettings_1_1Nested.html#a5d212cadbf82cfb6c1eaef5b10f2ddb5">00195</a>                 <span class="keyword">internal</span> <span class="keyword">static</span> readonly <a class="code" href="../../d0/d08/classMinConsole_1_1Conf_1_1AppInstSettings.html">AppInstSettings</a> instance = <span class="keyword">new</span> <a class="code" href="../../d0/d08/classMinConsole_1_1Conf_1_1AppInstSettings.html">AppInstSettings</a>();
<a name="l00196"></a>00196             } <span class="comment">//eof class </span>
<a name="l00197"></a>00197 
<a name="l00198"></a>00198 <span class="preprocessor">            #endregion SingletonPattern</span>
<a name="l00199"></a>00199 <span class="preprocessor"></span>
<a name="l00200"></a>00200         } <span class="comment">//eof class AppInstSettings</span>
<a name="l00201"></a>00201 } <span class="comment">//eof namespace </span>
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Sat Jan 22 2011 22:24:47 for DataExtractor by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.7.2 </small></address>
</body>
</html>
